// components-biz/price-value/index.js
const { BaseBehavior, COMPONENT_OPTIONS } = require('../../mixins/component');
Component({
    behaviors: [BaseBehavior],
    options: {
        ...COMPONENT_OPTIONS,
    },
    properties: {
        // 价格
        price: {
            type: Number,
            value: 0,
        },
        // 原价
        originalPrice: {
            type: Number,
            value: 0,
        },
        // 前缀
        prefix: {
            type: String,
            value: '￥',
        },
        // 字体大小，单位：rpx
        size: {
            type: String,
            value: 'middle', // small middle larger
        },
        // 是否有额外信息
        isHaveExt: {
            type: Boolean,
            value: false,
        },
        isUseTheme: {
            type: Boolean,
            value: true,
        },
        // 额外信息
        extText: {
            type: String,
            value: '',
        },
    },
})
